<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="/admin/css/share/style.default.css" rel="stylesheet">
    <link href="/admin/lib/select2/select2.css" rel="stylesheet">

    <link href="/admin/lib/webuploader/webuploader.css" rel="stylesheet">
    <script src="/admin/script/share/jquery-1.11.1.min.js"></script>
    <script src="/admin/script/share/jquery-migrate-1.2.1.min.js"></script>
    <script src="/admin/script/share/jquery-ui-1.10.3.min.js"></script>
    <script src="/admin/lib/bost/bootstrap.js"></script>

    <script src="/admin/script/share/modernizr.min.js"></script>
    <script src="/admin/script/share/jquery.cookies.js"></script>
    <script src="/admin/lib/director.js"></script>
    <script src="/admin/script/share/template-native.js"></script>
    <script src="/admin/script/share/validateRegExp.js"></script>
    <script src="/admin/script/share/validate-2.0.0.js"></script>
    <script src="/admin/lib/layer/layer.js"></script>

    <script src="/admin/lib/select2/select2.js"></script>
    <script src="/admin/lib/select2/zh-CN.js"></script>
    <script src="/admin/script/share/util.js"></script>
    <script src="/admin/script/share/custom.js"></script>
<body>
    <a class="btn">按钮</a>
    <select id="aaaaa">
        <option>123123</option>
        <option>123123</option>
        <option>123123</option>
        <option>123123</option>
    </select>
    <script>

        $("#aaaaa").val("")
        alert( $("#aaaaa").val())
    </script>
    <script>
        var initdata = "3月2号"// 整最开始的时候 时间

        var q = "123123123"  //固定值 一期 的时间
        //星期2 00.00 -下个星期三 12:00 七天
        //星期三 一定是一期的 最后一天
        //得到上一次提交 成功的时间 【必然是 星期三之前】

        var da = "3月2号"   //上一次成功提交时间
        var daSan = 123123123123; //根据  da {上一期提交时间} 得到星期三  【毫秒

        var day = "3月10号" //今天的日期 【毫秒

         var ss=day - daSan ; //上个星期三 和今天的 毫秒差值


           var zz= ss/q //小于1 的时候 就是 上一期的 下一期 。 如果大于1 就是下下期 2下下下 期 以此类推


        //        $(function () {
//            var data={
//                "id":"8e0d3bd083844481fc5ec6aac5be4457"
//            }
//
//            $.restPost("/doSelectMemberInfo",data).done(function (mess , data) {
//                $.rootSuccessDialog(mess,2000)
//            }).fail(function () {
//                $.rootErrorDialog(mess,2000)
//            })
//        })
$(function(){

    var browserIdentify =function () {
        var browser = {
            versions: function () {
                var u = navigator.userAgent, app = navigator.appVersion;
                return {         //移动终端浏览器版本信息
                    trident: u.indexOf('Trident') > -1, //IE内核
                    presto: u.indexOf('Presto') > -1, //opera内核
                    webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
                    gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
                    mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
                    ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
                    android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或uc浏览器
                    iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器
                    iPad: u.indexOf('iPad') > -1, //是否iPad
                    webApp: u.indexOf('Safari') == -1 //是否web应该程序，没有头部与底部
                };
            }(),
            language: (navigator.browserLanguage || navigator.language).toLowerCase()
        }

        if (browser.versions.mobile) {//判断是否是移动设备打开。browser代码在下面
            var ua = navigator.userAgent.toLowerCase();//获取判断用的对象
            if (ua.match(/MicroMessenger/i) == "micromessenger") {
                $("#dividend").show()
            }

        } else {
            $("#overview" ,"#member" ,"#bonus","#dividend","#finance","#system").show()

            if(browser.versions.trident){
                alert("请安装火狐浏览器")
            }
        }
    }

    browserIdentify()


    function extract(receiveList) {
        var arr=[]

        for(var i=0; i<receiveList.length; i++){
            arr[i]={
                uId:receiveList.uId,
                week:receiveList.week,
                account:receiveList.account
            }
        }

        return arr
    }
    
    
   /* var dataAry=[];
    var data1 = {"uId":"6f25f5b4cb931f444af4acf5be313e8a","week":"1","account":"2100"};
    var data2 = {"uId":"6f25f5b4cb931f444af4acf5be313e8a","week":"2","account":"2100"};
    var data3 = {"uId":"6f25f5b4cb931f444af4acf5be313e8a","week":"3","account":"2100"};
    var data4 = {"uId":"6f25f5b4cb931f444af4acf5be313e8a","week":"4","account":"2100"};
    var data5 = {"uId":"6f25f5b4cb931f444af4acf5be313e8a","week":"5","account":"2100"};

    var data11 = {"uId":"bdb6a0c756ee525e9201983483775e59","week":"1","account":"2100"};
    var data21 = {"uId":"bdb6a0c756ee525e9201983483775e59","week":"2","account":"2100"};
    var data31 = {"uId":"bdb6a0c756ee525e9201983483775e59","week":"3","account":"2100"};
    var data41 = {"uId":"bdb6a0c756ee525e9201983483775e59","week":"4","account":"2100"};
    var data51 = {"uId":"bdb6a0c756ee525e9201983483775e59","week":"5","account":"2100"};
    var data61 = {"uId":"bdb6a0c756ee525e9201983483775e59","week":"6","account":"2100"};
    var data71 = {"uId":"bdb6a0c756ee525e9201983483775e59","week":"7","account":"2100"};


    dataAry.push(data1);
    dataAry.push(data2);
    dataAry.push(data3);
    dataAry.push(data4);
    dataAry.push(data5);

    dataAry.push(data11);
    dataAry.push(data21);
    dataAry.push(data31);
    dataAry.push(data41);
    dataAry.push(data51);
    dataAry.push(data61);
    dataAry.push(data71);
    $.ajax({
        url:'/doAddShareList',
        data:JSON.stringify(dataAry),
        type:'POST',
        dataType:'json',
        contentType: "application/json;charset=UTF-8",
        success:function(data){
            alert(JSON.stringify(data));
        },
        error:function(){
            alert('error');
        }
    });*/
})
    </script>
</body>
</html>